package com.zrrd.io.pojo;

import java.io.Serializable;

/**
 * @author WanJl
 * @version 1.0
 * @title Student
 * @description
 * @create 2023/10/15 10:39
 */
public class Student implements Serializable {

    private static final long serialVersionUID = -8642902140782485312L;

    private String name;
    private Integer age;
    //设置该成员变量不被序列化
    private transient String sex;


    public Student() {
    }

    public Student(String name, Integer age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }
}
